Skip to content

Checks: Add failed mesh elements/sides to debug mesh - #160

Merged
kopperp merged 4 commits into
mainfrom
improvement.check.output
Sep 2, 2026
Merged

Checks: Add failed mesh elements/sides to debug mesh#160
kopperp merged 4 commits into
mainfrom
improvement.check.output

Conversation

@kopperp

@kopperp kopperp commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

If any element or side fails a mesh check, add it to a separate Volume [Error]/Surface [Error] grid in the XDMF debug mesh.

Additionally, improve the alignment of the CheckOrient logic. Previously, CheckOrient() was called before GenerateSides(), so elem.sides did not exist. After moving CheckOrient() backwards in the call structure, align better with PyHOPE internal data structure.

Closes #157

@kopperp kopperp added this to the v1.1.0 milestone Aug 16, 2026
@kopperp
kopperp requested a review from scopplestone August 16, 2026 11:55
@kopperp kopperp self-assigned this Aug 16, 2026
@kopperp kopperp added the enhancement New feature or request label Aug 16, 2026
@kopperp

kopperp commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator Author

@scopplestone Currently, we do not create a separate Volume [Error] if the element Jacobian < 0 since this can easily be filtered with a threshold in the regular debug mesh. Should we add it to the output?

@kopperp
kopperp force-pushed the improvement.check.output branch 3 times, most recently from 0c48750 to 247c413 Compare August 16, 2026 12:35
@github-actions

github-actions Bot commented Aug 16, 2026

Copy link
Copy Markdown

☂️ Code Coverage

current status: ✅

Overall Coverage

Statements Covered Coverage Threshold Status
3217 2934 91% 85% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
pyhope/basis/basis_connect.py 100% 🟢
pyhope/basis/basis_orient.py 100% 🟢
pyhope/basis/basis_watertight.py 100% 🟢
pyhope/io/io_debug.py 98% 🟢
pyhope/mesh/connect/connect.py 98% 🟢
pyhope/mesh/extrude/mesh_extrude.py 99% 🟢
TOTAL 99% 🟢

updated for commit: b37ff20 by action🐍

@scopplestone

Copy link
Copy Markdown
Collaborator

@scopplestone Currently, we do not create a separate Volume [Error] if the element Jacobian < 0 since this can easily be filtered with a threshold in the regular debug mesh. Should we add it to the output?

I would not add a separate container and instead filter the normal output

Previously, CheckOrient() was called before GenerateSides(), so elem.sides did not exist. After moving CheckOrient() back, align better with PyHOPE internal data structure
@kopperp
kopperp force-pushed the improvement.check.output branch from 247c413 to 949d502 Compare September 2, 2026 18:54
@kopperp
kopperp merged commit bc3117f into main Sep 2, 2026
16 checks passed
@kopperp
kopperp deleted the improvement.check.output branch September 2, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem with surface normal check + add debugging output of broken elements/faces/normals to _DebugMesh.xdmf

2 participants